<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	  			xmlns:h="http://java.sun.com/jsf/html"
	 			xmlns:p="http://primefaces.org/ui" 
	 			xmlns:c="http://java.sun.com/jsf/core"
	 			xmlns:f="http://java.sun.com/jsf/core"
      			xmlns:ui="http://java.sun.com/jsf/facelets">

<h:panelGrid columns="2">
	<h:outputLabel value="#{lang.getTrans('ui.mobile.service.name')}" />
	<p:inputText id="cdService" value="#{serviceBean.service.cdService}" required="true"
		requiredMessage="#{lang.getTrans('ui.mobile.service.name.obrigatorio')}"
		maxlength="30" size="40" />

	<h:outputLabel value="#{lang.getTrans('ui.mobile.service.description')}" />
	<p:inputTextarea id="dsService" value="#{serviceBean.service.dsService}" 
		requiredMessage="#{lang.getTrans('ui.mobile.service.description.obrigatorio')}"
		cols="50" rows="10" required="true" />

	<h:outputLabel value="#{lang.getTrans('ui.mobile.service.type')}" />
	<p:selectOneMenu id="serviceType" value="#{serviceBean.service.serviceType}">
		<f:selectItem itemLabel="Selecione" itemValue="" />
		<f:selectItems value="#{serviceBean.serviceTypes}" />
		<f:converter converterId="serviceType" />
	</p:selectOneMenu>
	
	<h:outputLabel value="#{lang.getTrans('ui.mobile.service.situation')}" />
	<p:selectOneMenu id="serviceSituation" value="#{serviceBean.service.serviceSituation}" >
		<f:selectItem itemLabel="Selecione" itemValue="" />
		<f:selectItems value="#{serviceBean.serviceSituations}"/>
		<f:converter converterId="serviceSituation" />
	</p:selectOneMenu>

	<h:outputLabel value="#{lang.getTrans('ui.mobile.service.customer')}" />
	<p:selectOneMenu id="customer" value="#{serviceBean.service.customer}">
		<f:selectItem itemLabel="Selecione" itemValue="" />
		<f:selectItems value="#{serviceBean.customers}" />
		<f:converter converterId="customer" />
	</p:selectOneMenu>
	<h:inputHidden id="dtBeginAttendance" value="#{serviceBean.service.dtBeginAttendance}" converter="dateString"/>
	<h:inputHidden id="dtBeginSolution" value="#{serviceBean.service.dtBeginSolution}" converter="dateString"/>
	<h:inputHidden id="dtEndSolution" value="#{serviceBean.service.dtEndSolution}" converter="dateString"/>
	<h:inputHidden id="dtEndAttendance" value="#{serviceBean.service.dtEndAttendance}" converter="dateString"/>
	<h:inputHidden id="idService" value="#{serviceBean.service.idService}" />
	<h:inputHidden id="nrVersion" value="#{serviceBean.service.nrVersion}" />
	
</h:panelGrid>
				
</ui:composition>